﻿using System.Windows;

namespace Visuals.Wizard
{
    /// <summary>
    /// Interaction logic for StartWindow.xaml
    /// </summary>
    public partial class ThirdStepWindow : Window
    {
        public ThirdStepWindow(bool stemming)
        {
            InitializeComponent();
            shouldStem.IsChecked = stemming;
        }

        private void nextButton_Click(object sender, RoutedEventArgs e)
        {
            MainWindow.Object.shouldStem.IsChecked = shouldStem.IsChecked;
            //FourthStepWindow fourthStep = new FourthStepWindow(MainWindow.Object.shouldNer.IsChecked == true);
            FourthStepWindow fourthStep = new FourthStepWindow(false);
            Close();
            fourthStep.ShowDialog();
        }

        private void prevButton_Click(object sender, RoutedEventArgs e)
        {
            SecondStepWindow secondStep = new SecondStepWindow(false);
            Close();
            secondStep.ShowDialog();
        }

        private void cancelButton_Click(object sender, RoutedEventArgs e)
        {
            Close();
        }
    }
}
